#parse("admin/inc/goodsleft.html")
				<div id="center-column">
					<div class="top-bar">
						<a href="new" class="button">增加 内容 </a>
						<h1>
							Contents
						</h1>
						<div class="breadcrumbs">
							<a href="#">Homepage</a> /
							<a href="#">Contents</a>
						</div>
					</div>
					<br />
					<div class="select-bar">

					</div>
					<div class="table">
						<img src="../../img/bg-th-left.gif" width="8" height="7" alt=""
							class="left" />
						<img src="../../img/bg-th-right.gif" width="7" height="7" alt=""
							class="right" />
						<table class="listing form" cellpadding="0" cellspacing="0">
							<form name="editcategory" id="editcategory" method="post"
								action="../save">
								<input type="hidden" name="categoryID" value="${entity.categoryID}" />
							<tr>
								<th class="full" colspan="2">
									增加项
								</th>
							</tr>
							 
						 	<tr>
					<td class="first" width="172">
						<strong>类目名称</strong>
					</td>
					<td class="last">
						<INPUT type="text" class=text name=categoryName value="${entity.categoryName}" > 
					</td>
				</tr>
			 

				<tr>
					<td class="first"">
						<strong>所属频道</strong>
					</td>
					<td class="last">
						<select style="width: 65%" name="channelID" value="${entity.channelID}" >
						 
						 #if( $channellist.size() > 0) #foreach ( $data in ${channellist})
							#if($!{entity.channelID}==$!{data.channelId})
							#set ($ifselect1 ="selected") 
							<option value='${data.channelId}' $!{ifselect1}>
							${data.channelTitle}
							</option>
							#else 
							<option value='${data.channelId}' >
							${data.channelTitle}
							</option>
							#end
							
							#end #end
							
						 
						</select>
					</td>
				</tr>

				<tr>
					<td class="first"">
						<strong>上级类目</strong>
					</td>
					<td class="last">
						<select style="width: 65%" name="parentName">
							#if( $levellist.size() > 0) #foreach ( $leveldata in ${levellist})	
							#if($!{leveldata.categoryID}==$!{entity.parentID})
							#set ($levelselect="selected")
							<option value="${leveldata.categoryID}=${leveldata.categoryName}"  $!{levelselect}>
								${leveldata.categoryName} 
							</option>
							#else 
							<option value="${leveldata.categoryID}=${leveldata.categoryName}" >
								${leveldata.categoryName} 
							</option>
							#end
							#end #end  
						</select>
					</td>
				</tr>



				<tr>
					<td class="first"">
						<strong>类目级别</strong>
					</td>
					<td class="last">
					#if($!{entity.level}==1) 
					#set ($ifselect1 ="selected")
					#elseif($!{entity.level}==2) 
					#set ($ifselect2 ="selected") 
					#else #set ($ifselect3 ="selected") 
					#end
						
						
						<select style="width: 65%" name="level" value="${entity.level}" >
						$!{entity.level}
						<option value='1' $!{ifselect1}>
								一级类目
							</option>
							<option value='2' $!{ifselect2}>
								二级类目
							</option>
							<option value='3' $!{ifselect3}>
								三级类目
							</option>
						 
						</select>
					</td>
				</tr>

				<tr>
					<td class="first"">
						<strong>类目状态</strong>
					</td>
					<td class="last">
					#if($!${entity.status}==1) 
					#set ($status1 ="selected")
					#else   
					#set ($status2 ="selected") 
					#end

						<select style="width: 65%" name="status"
							value="${entity.status}">

							<option value='1' $!{status1}>
								发布 
							</option>
							 
							<option value='0' $!{status2} >
								暂停 
							</option>
						</select>
					</td>
				</tr>
							 
							 
							<tr><td>
							<input type="submit" value="保 存" />
							</form>
								</td></tr>
						</table>
						<p>
							&nbsp;
						</p>
					</div>
				</div>
				<div id="right-column">
					<strong class="h">INFO</strong>
					<div class="box">
						Detect and eliminate viruses and Trojan horses, even new and
						unknown ones. Detect and eliminate viruses and Trojan horses, even
						new and
					</div>
				</div>
			</div>
			<div id="footer"></div>
		</div>


	</body>
</html>
